use apg_migration_ruggedness_urbanization_ethnic_family

gen h_diff=h_n-h_a
gen loggdppc2005=log(gdppc2005)
graph twoway (scatter apg_raw loggdppc2005, msize(small) mlabel(isocode)) (lfit apg_raw loggdppc2005)


reg apg_raw rtou_male rugged  soil h_diff dist_coast q_rule_law, robust
reg apg_raw rtou_female rugged  soil h_diff dist_coast q_rule_law, robust
reg apg_raw rtou_male rtou_female rugged  soil h_diff dist_coast q_rule_law, robust


reg apg_adj_imp rtou_male rugged  soil dist_coast q_rule_law, robust
reg apg_adj_imp rtou_female rugged  soil dist_coast q_rule_law, robust
reg apg_adj_imp rtou_male rtou_female rugged  soil dist_coast q_rule_law, robust

reg apg_raw urban2005 rugged soil h_diff dist_coast q_rule_law, robust
reg apg_adj_imp urban2005 rugged soil dist_coast q_rule_law, robust

reg urban2005 rugged q_rule_law Ethnic, robust
reg urban2005 rugged q_rule_law Ethnic family_importance, robust

ivreg apg_raw (urban2005=q_rule_law) rugged soil h_diff dist_coast, robust
ivreg apg_adj_imp (urban2005=q_rule_law) rugged soil dist_coast, robust



